package com.chenjun.core.vo.sys;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

import org.springframework.beans.BeanUtils;

import com.chenjun.core.dao.generator.entity.SysLog;
/**
 * 
 * @ClassName: SysLog 
 * @author Sean Cui
 * @date 2017-04-16 下午03:11:00 
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @version V1.0.0.0
 * @comment 该文件通过代码生成器生成，如果修改次文件后，重新生成时将覆盖修改内容，请修改生成模板或做好备份
 */

@SuppressWarnings("serial")
public class SysLogDto implements Serializable{
	
    /**
     * 主键值(系统操作日志表)  
     * db_column: id 
     */	
	private String id;
    /**
     * 操作用户ID ref user_tbl  
     * db_column: user_id 
     */	
	private String userId;
    /**
     * 操作人姓名  
     * db_column: user_name 
     */	
	private String userName;
    /**
     * 操作方法名  
     * db_column: methods 
     */	
	private String methods;
    /**
     * 操作参数  
     * db_column: params 
     */	
	private String params;
    /**
     * 访问的路径  
     * db_column: url 
     */	
	private String url;
    /**
     * 操作时间  
     * db_column: created_time 
     */	
	private Date createdTime;
	
	public void setId(String id) {
		this.id = id == null ? null : id.trim();
	}
	
	public String getId() {
		return this.id;
	}
	public void setUserId(String userId) {
		this.userId = userId == null ? null : userId.trim();
	}
	
	public String getUserId() {
		return this.userId;
	}
	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}
	
	public String getUserName() {
		return this.userName;
	}
	public void setMethods(String methods) {
		this.methods = methods == null ? null : methods.trim();
	}
	
	public String getMethods() {
		return this.methods;
	}
	public void setParams(String params) {
		this.params = params == null ? null : params.trim();
	}
	
	public String getParams() {
		return this.params;
	}
	public void setUrl(String url) {
		this.url = url == null ? null : url.trim();
	}
	
	public String getUrl() {
		return this.url;
	}
	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}
	
	public Date getCreatedTime() {
		return this.createdTime;
	}
	
	/**
	 * 根据Bean获取Model模型
	 * @return
	 * PayBean
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 */
	public static SysLogDto getDtoByModel(SysLog source) throws IllegalAccessException, InvocationTargetException{
		SysLogDto target = new SysLogDto();
		BeanUtils.copyProperties(source, target);
		return target;
	}
	
	
	/**
	 * 根据Model获取Bean模型
	 * @return
	 * PayBean
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 */
	public static SysLog getModelByDto(SysLogDto source) throws IllegalAccessException, InvocationTargetException{
		SysLog target = new SysLog();
		BeanUtils.copyProperties(source, target);
		return target;
	}

}
